<?php
    // constants definitions
	define("MAX_PLANET_SIZE", 20);
	
	define("DB_HOST", "localhost");
	define("DB_USER", "a7397757_root");
	define("PASSWD" , "pass123");
	define("DB_NAME", "swc_test");
	
	define("DUPLICATE", 1062);
	
	//$db = new mysqli(DB_HOST, DB_USER, PASSWD, DB_NAME);
	// Open PDO connection with the database (global)
	try {
		$db = new PDO('mysql:host=mysql6.000webhost.com;dbname=a7397757_swctest', DB_USER, PASSWD);
		$db->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);
		
	} catch (PDOException $e) {
		print "Error!: " . $e->getMessage() . "<br/>";
		die();
	}
	
	// array with all the possible materials
	$rm_array = array ('Rudic',
						'Duracrete',
						'Rockivory',
						'Meleenium',
						'Lommite',
						'Varmigio',
						'Quantum',
						'Ardanium',
						'Tibannagas',
						'Varium',
						'Durelium',
						'Ryll',
						'Alazhi',
						'Laboi',
						'Adegan',
						'Nova',
						'Hibridium',
						'Lowickan',
						'Vertex',
						'Berubian');
 
?>
